//
//  SPShadowView.m
//  SecondPackage
//
//  Created by 韩艳锋 on 2019/7/1.
//  Copyright © 2019 韩艳锋. All rights reserved.
//

#import "SPShadowView.h"

@implementation SPShadowView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(void)layoutSubviews {
    CGPathRef path = [UIBezierPath bezierPathWithRect:self.bounds].CGPath;
    if (self.layer.shadowPath != path) {
        self.layer.shadowPath = path;
    }
}
@end
